
package app.controller.init
{
    import app.StateConstants;
    
    import org.puremvc.as3.multicore.interfaces.INotification;
    import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
    import org.puremvc.as3.multicore.utilities.statemachine.FSMInjector;
    

    public class ConstructFSMCmd extends SimpleCommand {
        
        override public function execute ( note:INotification ) : void
        {
            // Create the FSM definition
            // Create and inject the StateMachine 
            var injector:FSMInjector = new FSMInjector( StateConstants.FSM_DECLARATION );
            injector.initializeNotifier(this.multitonKey);
            injector.inject();
        }
    }
}